/**
 * Created by yu on 16/8/21.
 * 合并buffer
 */
var buf1 = new Buffer('后');
var buf2 = new Buffer('盾');
var buf3 = new Buffer('培');
var buf4 = new Buffer('训');
//Buffer.concat(list,length);
var all = Buffer.concat([buf1,buf2,buf3,buf4],12);

console.log(all.toString());
console.log(all.slice(9,12).toString());

